.class Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$18;
.super Ljava/lang/Object;
.source "FootprintDetailEditActivity.java"

# interfaces
.implements Landroid/view/View$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;


# direct methods
.method constructor <init>(Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;)V
    .locals 0
    .parameter

    .prologue
    .line 1462
    iput-object p1, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$18;->this$0:Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 4
    .parameter "view"

    .prologue
    .line 1464
    iget-object v2, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$18;->this$0:Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;

    invoke-virtual {v2}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->getWindow()Landroid/view/Window;

    move-result-object v2

    const/16 v3, 0x80

    invoke-virtual {v2, v3}, Landroid/view/Window;->clearFlags(I)V

    .line 1465
    iget-object v2, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$18;->this$0:Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;

    #getter for: Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->locationText:Landroid/widget/TextView;
    invoke-static {v2}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->access$1600(Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;)Landroid/widget/TextView;

    move-result-object v2

    const v3, 0x7f0a003c

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setText(I)V

    .line 1466
    iget-object v2, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$18;->this$0:Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;

    #getter for: Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mGpsUpdate:Landroid/widget/ImageView;
    invoke-static {v2}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->access$2400(Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;)Landroid/widget/ImageView;

    move-result-object v2

    const/4 v3, 0x1

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setEnabled(Z)V

    .line 1468
    :try_start_0
    iget-object v2, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$18;->this$0:Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;

    iget-object v2, v2, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mService:Lcom/htc/android/footprints/ILocationAgentService;

    if-eqz v2, :cond_0

    .line 1469
    iget-object v2, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$18;->this$0:Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;

    iget-object v2, v2, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mService:Lcom/htc/android/footprints/ILocationAgentService;

    invoke-interface {v2}, Lcom/htc/android/footprints/ILocationAgentService;->stopTrackingWithoutNotify()V
    :try_end_0
    .catch Landroid/os/RemoteException; {:try_start_0 .. :try_end_0} :catch_0

    .line 1475
    :cond_0
    :goto_0
    new-instance v1, Landroid/content/Intent;

    iget-object v2, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$18;->this$0:Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;

    const-class v3, Lcom/htc/android/footprints/activity/EditLocationActivity;

    invoke-direct {v1, v2, v3}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 1476
    .local v1, intent:Landroid/content/Intent;
    const-string v2, "LATITUDE"

    iget-object v3, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$18;->this$0:Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;

    #getter for: Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;
    invoke-static {v3}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->access$100(Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;)Lcom/htc/android/footprints/vo/Footprint;

    move-result-object v3

    iget v3, v3, Lcom/htc/android/footprints/vo/Footprint;->mLatitude:I

    invoke-virtual {v1, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    .line 1477
    const-string v2, "LONGITUDE"

    iget-object v3, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$18;->this$0:Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;

    #getter for: Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;
    invoke-static {v3}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->access$100(Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;)Lcom/htc/android/footprints/vo/Footprint;

    move-result-object v3

    iget v3, v3, Lcom/htc/android/footprints/vo/Footprint;->mLongitude:I

    invoke-virtual {v1, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    .line 1478
    iget-object v2, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$18;->this$0:Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;

    const/4 v3, 0x5

    invoke-virtual {v2, v1, v3}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->startActivityForResult(Landroid/content/Intent;I)V

    .line 1479
    return-void

    .line 1471
    .end local v1           #intent:Landroid/content/Intent;
    :catch_0
    move-exception v2

    move-object v0, v2

    .line 1472
    .local v0, e:Landroid/os/RemoteException;
    invoke-virtual {v0}, Landroid/os/RemoteException;->printStackTrace()V

    goto :goto_0
.end method
